//
//  StageScene.h
//  FrameWork
//
//  Created by waver on 10-8-5.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CLoadingW.h"
#import "GameSet.h"
#import "Parameter.h"
#import "GameScene.h"
#import "CDrawNumberW.h"
#import "CDAudioManager.h"
@interface StageLayer:CCLayer
{
	CCSprite * __groundSpr;//背景
	CCSprite * __mapSprite;//地图
	CCSprite * __titleSprite;//标题
	CCSprite * __stageFourSpr[4];//
	CCSprite * __stageNameSpr[4];
	CCSprite * __startSelSpr;//开始游戏框
	CCSprite * __startWord;//开始游戏
	CCSprite * __modeSelSpr[2];//战役选择框,战役,自由
	CCSprite * __modeNameSpr[2];//战役,自由
	CCSprite * __backSpr;//返回主菜单
	CCSprite * __exploitSpr;//战功
	CCSprite * __startSpr;//开始游戏
	
	int			loadImageNum;//当前已装载多少图片
	
	int			selectStage;//当前选择的关卡,从0开始
	
	int			selectMode;//当前选择的模式0,战役模式,1自由模式
	
	int width ;//关卡字长度
	
	CCParticleSystem *emitter;
	
	CDrawNumberW * __moneyB;//
	CDrawNumberW * __waveB;
	CDrawNumberW * __cityHpB;
	
}

+(id)scene;

-(void)SpriteInit;

//返回主菜单
-(void)BackMainScene;

//选择虎牢关
-(void)SelectHuLao;
//选择长板坡
-(void)SelectChangBanPo;
//选择定君山
-(void)SelectDingJunShan;
//选择南中
-(void)SelectNanZhong;

//选择战役
-(void)SelectCampaignMode;
//选择自由
-(void)SelectFreeMode;



//选择开始游戏
-(void)BeginGame;

//加载图片
-(void)LoadImage;

//每一个图片加载完后调用一次
-(void)LoadPictureOver;

//获取一个精灵的大小
-(CGRect)RectFromSprite:(CCSprite *) pSprite;

-(void)StageSelcetChange:(int)NewSelect;

-(void)StageModeChange:(int)newMode;

-(void)GotoGameNow;

-(void)DisplayInfo;

-(void)CheckLoadOver;

@end